Skip to content

worker: simplify response check#384

Open
mistydemeo wants to merge 1 commit intointernetarchive:masterfrom
mistydemeo:misty/simplify_mime_type_check
Open

worker: simplify response check#384
mistydemeo wants to merge 1 commit intointernetarchive:masterfrom
mistydemeo:misty/simplify_mime_type_check

Conversation

@mistydemeo
Copy link
Copy Markdown
Contributor

Just a minor tweak - when reading this I found the repeated indexing and a in b checks harder to read, so I figured safely grabbing the data at the start would let us shorten the rest of the logic.

@mistydemeo mistydemeo force-pushed the misty/simplify_mime_type_check branch from 0327bed to f07a9d2 Compare July 18, 2025 20:52
Pre-fetching this with .get() calls lets us skip some repetitive
indexing.
@mistydemeo mistydemeo force-pushed the misty/simplify_mime_type_check branch from f07a9d2 to 8f5d0ba Compare July 18, 2025 20:55
@vbanos
Copy link
Copy Markdown
Contributor

vbanos commented Dec 6, 2025

This is a nice change, why it hasn't been merged yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants